package com.beck.log;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UserController {
    static Logger logger = LoggerFactory.getLogger(UserController.class);

    @RequestMapping("test")
    public String test() {
        logger.info(logger.getName());
        logger.debug("UserController debug----");
        logger.info("UserController info----");
        logger.warn("UserController warn----");
        logger.error("UserController error----");
        return "Hello World";
    }
}
